import React from "react";
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import { Provider } from "react-redux";
import Home from "../page/Home/index";
import Login from "../page/Login/index";
import store from "../store/index";

export default class RouterWrapper extends React.PureComponent {
    render() {
        return (
            <Provider store={store}>
                <Router>
                    <Switch>
                        <Route exact path="/" component={Home} />
                        <Route exact path="/login" component={Login} />
                    </Switch>
                </Router>
            </Provider>
        )
    }
}
